package demoMod.stsconsole.interfaces;

public interface ISubscriber extends Comparable<ISubscriber> {
    default int getPriority() {
        return 1;
    }

    default boolean enabled(Class<? extends ISubscriber> cls) {
        return true;
    }

    @Override
    default int compareTo(ISubscriber another) {
        return Integer.compare(getPriority(), another.getPriority());
    }
}
